package javamop.parser.ast.aspectj;

import javamop.parser.ast.visitor.GenericVisitor;
import javamop.parser.ast.visitor.PointcutVisitor;
import javamop.parser.ast.visitor.VoidVisitor;

public class EndObjectPointCut extends PointCut {
	
	TypePattern targetType;
	String id;
	
	public EndObjectPointCut(int line, int column, TypePattern targetType, String id){
		super(line, column, "endObject");
		this.targetType = targetType;
		this.id = id;
	}
	public TypePattern getTargetType() { return targetType; }
	
	public String getId() { return id; }
	
    @Override
    public <A> void accept(VoidVisitor<A> v, A arg) {
        v.visit(this, arg);
    }

    @Override
    public <R, A> R accept(GenericVisitor<R, A> v, A arg) {
        return v.visit(this, arg);
    }

    @Override
    public <R, A> R accept(PointcutVisitor<R, A> v, A arg) {
        return v.visit(this, arg);
    }
}